Using lcc-win32 from the Command Line

 

You can use the entire system without any GUI interface or even another editor, Make utility, etc. Following is brief description of al of the command line switches accepted by each utility.

 

If you choose to use the standard settings, however, skip this section for now. You can perform these steps from the integrated development environment (Wedit).

 

In order for the utilities mentioned here to function, you must add the directory in which the executables are saved (normally \lcc\bin) to your PATH environment variable. Technically, this is just a convenience, but it is recommended.

 

The following executables should all be in your \lcc\bin directory. An explanation of their functions follows:

 

 

Utility

Function

apilist.dll

Answers queries on which library exports a given API

bind.exe

Binds an object file to prepare it for the dynamic loader

browsegen

Builds a file with definition information for a given source file

buildlib

Builds import libraries for making DLLs

buildapi

Builds the list of all windows APIs in \lcc\lib\apilist.txt

dllwiz

Manages the export definitions file for a DLL

dolibs

Rebuilds all import libraries. Normally it runs only once when lcc-win32 is installed, but it can be used at any time.

dynloader.dll

The dynamic loader

iedit

Icon/cursor/bitmap editor

f2c

Fortran to C translator

gc.dll

The memory manager DLL

qfloat.dll

104 digits precision floating point

lburg

Compiler compiler. Not needed in normal operation. Only needed if you modify the machine description of the compiler.

lc.exe

Compilation driver. Calls the compiler, and if there were no errors when compiling the source,  it calls the linker.

lcc

Preprocessor, C Compiler and assembler

lcclib

Librarian. Used for maintaining object file libraries.

lcclnk

Linker

lrc

Resource compiler

make

Utility for project maintenance

mc

Message compiler

mergeasm

Merges an assembler (.asm) file with a c source  file.

pedump

Binary file dumper

rundos

Utility to run an executable in a console window

Wedit

Integrated development environment

weditres

Resource editor

windent.exe

Indents (formats) C source code

wresdll.dll

Resource editor DLL

wizard

Utility for generating an application skeleton